From: Carlos Garnacho Date: Mon, 31 Oct 2022 12:15:32 +0000 (+0100) Subject: swipeTracker: Drop grab-op-begin signal connection X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~405^2^2~136 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=a2a5d7682faaa22641ac1210ff464227ca23ce90;p=gnome-shell.git swipeTracker: Drop grab-op-begin signal connection This is done just to "reset" the gesture when a grab operation begins. With grab ops being based on ClutterGrab now, the gesture will be implicitly reset when these happen. This is unnecessary now. Part-of: --- diff --git a/js/ui/swipeTracker.js b/js/ui/swipeTracker.js index 869f977c5..92990142b 100644 --- a/js/ui/swipeTracker.js +++ b/js/ui/swipeTracker.js @@ -232,11 +232,6 @@ const TouchSwipeGesture = GObject.registerClass({ this._allowedModes = allowedModes; this._distance = global.screen_height; - - global.display.connect('grab-op-begin', () => { - this.cancel(); - }); - this._lastPosition = 0; }